package com.a.test;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        send2c(new TestClass("donghongyu"));
        printInC();
    }

    public static native void send2c(TestInter t);

    public static native void printInC();

    public static String getName(TestInter t) {
        return t.getName();
    }

    static {
        System.loadLibrary("hello_jni");
    }
}
